package com.ls.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaotang
 * @since 2023-04-07
 */
@Data
  @TableName("t_order")
@ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("用户id")
      private Integer userId;

      @ApiModelProperty("商品id")
      private Integer productId;

      @ApiModelProperty("数量")
      private Integer number;

      @ApiModelProperty("单价")
      private BigDecimal price;

      @ApiModelProperty("总额")
      private BigDecimal amount;

      @ApiModelProperty("商品名")
      private String productName;

      @ApiModelProperty("用户名")
      private String username;
}
